package com.dstation.dao;

import com.dstation.domain.SubscriptionPackageInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SubscriptionPackageInfoMapper {

    List<SubscriptionPackageInfo> selectAllSubscriptionPackages();

    Boolean insertSubscriptionPackage(@Param("subscriptionPackageInfo") SubscriptionPackageInfo subscriptionPackageInfo);

    Boolean updateSubscriptionPackage(@Param("subscriptionPackageInfo") SubscriptionPackageInfo subscriptionPackageInfo);

    Boolean deletSubscriptionPackagee(Long subPackId);

    List<SubscriptionPackageInfo> selectAllSubscriptionPackagesByType(int subPackType);

    SubscriptionPackageInfo selectSubscriptionPackageBySubPackId(Integer subPackId);
}